# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-cattrs
pkgver=1.0.0
pkgrel=0
pkgdesc="Complex custom class converters for attrs"
url="https://github.com/Tinche/cattrs"
arch="noarch"
license="MIT"
depends="python3 py3-attrs"
makedepends="py3-setuptools"
options="!check" # loads of missing deps
source="https://files.pythonhosted.org/packages/source/c/cattrs/cattrs-$pkgver.tar.gz"
builddir="$srcdir/cattrs-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b803f4d44680be4c7fd55b5794e0d828e0c4dd7317dca213eb08299a446a2124ad5c4767e0fdbb3e19aadf9706151306d5692d3addc6ee233a8fef0d4cccc5ae  cattrs-1.0.0.tar.gz"
